<?php

/**
* @current cmscommentreply.php
* @author   LiuYang <liu_yang@haibao.com>
* @date 2017年2月8日 下午4:48:00
*/
namespace haibao\jiepai\model\data\comment;

class CmsCommentReply extends \haibao\jiepai\model\data\Base{
    
    /**
     * 0未读，1已读
     */
    const STATUS_NO = 1;
    const STATUS_YES = 2;
    /**
     * 审核状态 0-未审核 1-已审核 2-审核未通过
     */
    const AUDITSTATUS_NO = 0;
    const AUDITSTATUS_YES = 1;
    const AUDITSTATUS_NOPASSED = 2;
    
    /**
     *   是否精华 0 不是 1 是 
     */
    const ISBEST_NO = 0;
    const ISBEST_YES = 1;
    
    public $RepliedID;
    
    /**
     * 回复者userid
     */
    
    public $UserID;
    
    public $ReplyTime;
    
    public $Content;
    
    public $CommentID;
    
    /**
     * 被回复者userid
     */
    public $RepliedUserID;
    
    public $Status;
    
    public $AuditStatus;
    
    public $AuditTime;
    
    public $AuditUserID;
    
    public $SensitiveWords;
    
    public $Flag;
    
    public $IsBest;
    
    public function __construct(){
        parent::__construct();

        $this->setColumnName('Id', 'ReplyID');
        
        $this->intField('RepliedID', 'RepliedID');
        $this->intField('UserID', 'UserID');
        $this->dateField('ReplyTime', 'ReplyTime');
        $this->stringField('Content', 'Content');
        $this->intField('CommentID', 'CommentID');
        $this->intField('RepliedUserID', 'RepliedUserID');
        $this->intField('Status', 'Status',true);
        $this->intField('AuditStatus', 'AuditStatus');
        $this->dateField('AuditTime', 'AuditTime');
        $this->intField('AuditUserID', 'AuditUserID');
        $this->stringField('SensitiveWords', 'SensitiveWords');
        $this->intField('Flag','Flag',true);
        $this->intField('IsBest', 'IsBest');
        
        $this->setTableName('cms_comment_reply');
    }
}